/*
 * @Author: your name
 * @Date: 2021-09-15 21:37:59
 * @LastEditTime: 2022-03-03 23:41:02
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \leYi\config.js
 */
// h5 平台
//#ifdef H5
const BASE_URL = function () {
	let url;
	if (process.env.NODE_ENV === 'development') {
		url = '/api'
	} else {
		url = 'https://video.kejiadao.top/public/index.php/'
	}
	return url;
};
//#endif

//微信平台
//#ifdef MP-WEIXIN
const BASE_URL = function () {
	let url;
	if (process.env.NODE_ENV === 'development') {
		//振超本地地址
		url = 'https://video.kejiadao.top/public/index.php/'
	} else {
		url = 'https://video.kejiadao.top/public/index.php/'
	}
	return url;
};
//#endif

// app平台
//#ifdef APP-PLUS
const BASE_URL = function () {
	let url;
	if (process.env.NODE_ENV === 'development') {
		url = 'https://heng.leyichina.top/index.php'
	} else {
		url = 'https://www.sina.com'
	}
	return url;
};
//#endif

export default BASE_URL();